﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Data
{
    public interface IView<out T> where T : new()
    {
        IEnumerable<T> All();
        IEnumerable<T> All(string orderBy);
        IEnumerable<T> All(int startPage, int pageSize);
        IEnumerable<T> All(string orderBy, int startPage, int pageSize);
        IEnumerable<T> Where(string where, params object[] args);
        IEnumerable<T> SQL(string sql, params object[] args);
        IPagedResult<T> Paged(string where, string orderBy, int pageNumber, int pageSize, params object[] args);
    }


}
